package com.hyh.admin.domain.resources;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


@Data
@ApiModel(value = "ResourcesDanmu对象", description = "资源弹幕实体类")
public class ResourcesDanmu extends BaseEntity implements Serializable {
    /**
     * 资源弹幕id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "资源弹幕id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private String id;

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long resourcesId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long userId;

    /**
     * 弹幕内容
     */
    @ApiModelProperty(value = "弹幕内容")
    private String content;

    /**
     * 弹幕显示位置（如左、右、上、下、居中等）
     */
    @ApiModelProperty(value = "弹幕显示位置（如左、右、上、下、居中等）")
    private Integer position;

    /**
     * 弹幕出现的时间点（单位：秒）
     */
    @ApiModelProperty(value = "弹幕出现的时间点（单位：秒）")
    private Integer timestamp;

    /**
     * 弹幕点赞数
     */
    @ApiModelProperty(value = "弹幕点赞数")
    private Integer likeCount;

    /**
     * 弹幕举报数
     */
    @ApiModelProperty(value = "弹幕举报数")
    private Integer reportCount;
}
